<!-- 后台首页主体 -->
<template>
  <el-menu
    :default-active="activeNav"
    :default-openeds="openeds"
    class="el-menu-vertical-demo"
    :collapse="isCollapse"
    :unique-opened="true"
  >
    <el-menu-item class="title-text" v-show="!isCollapse">
      <img src="@/assets/img/logo-bac.svg" alt=""
    /></el-menu-item>
    <el-menu-item class="title" v-show="isCollapse">
      <img src="@/assets/img/logo.png" alt=""
    /></el-menu-item>
    <el-menu-item
      index="1"
      @click="
        $router.push(
          { path: '/admin' },
          (onComplete) => {},
          (onAbort) => {}
        )
      "
    >
      <i class="el-icon-menu"></i>
      <span slot="title">首页</span>
    </el-menu-item>
    <el-submenu index="2">
      <template slot="title">
        <i class="el-icon-user"></i>
        <span slot="title">用户管理</span>
      </template>
      <el-menu-item
        index="2-1"
        @click="
          $router.push(
            { path: '/admin/adminPerson' },
            (onComplete) => {},
            (onAbort) => {}
          )
        "
        >系统用户</el-menu-item
      >
      <el-menu-item
        index="2-2"
        @click="
          $router.push(
            { path: '/admin/adminCommon' },
            (onComplete) => {},
            (onAbort) => {}
          )
        "
        >普通用户</el-menu-item
      >
      <el-menu-item
        index="2-3"
        @click="
          $router.push(
            { path: '/admin/adminBusiness' },
            (onComplete) => {},
            (onAbort) => {}
          )
        "
        >商家管理</el-menu-item
      >
      <el-menu-item
        index="2-4"
        @click="
          $router.push(
            { path: '/admin/administrators' },
            (onComplete) => {},
            (onAbort) => {}
          )
        "
        >管理员</el-menu-item
      >
    </el-submenu>
    <el-submenu index="3">
      <template slot="title">
        <i class="el-icon-goods"></i>
        <span slot="title">商家申请</span>
      </template>
      <el-menu-item
        index="3-1"
        @click="
          $router.push(
            { path: '/admin/businessFirm' },
            (onComplete) => {},
            (onAbort) => {}
          )
        "
        >正在申请</el-menu-item
      >
      <el-menu-item
        index="3-2"
        @click="
          $router.push(
            { path: '/admin/successFirm' },
            (onComplete) => {},
            (onAbort) => {}
          )
        "
        >成功申请</el-menu-item
      >
      <el-menu-item
        index="3-3"
        @click="
          $router.push(
            { path: '/admin/failFirm' },
            (onComplete) => {},
            (onAbort) => {}
          )
        "
        >失败申请</el-menu-item
      >
    </el-submenu>
    <el-submenu index="4">
      <template slot="title">
        <i class="el-icon-document"></i>
        <span slot="title">论坛管理</span>
      </template>
      <el-menu-item
        index="4-1"
        @click="
          $router.push(
            { path: '/admin/adminPosts' },
            (onComplete) => {},
            (onAbort) => {}
          )
        "
        >帖子管理</el-menu-item
      >
      <el-menu-item
        index="4-2"
        @click="
          $router.push(
            { path: '/admin/adminPlate' },
            (onComplete) => {},
            (onAbort) => {}
          )
        "
        >板块管理</el-menu-item
      >
    </el-submenu>
    <el-menu-item
      index="5"
      @click="
        $router.push(
          { path: '/admin/adminJob' },
          (onComplete) => {},
          (onAbort) => {}
        )
      "
    >
      <i class="el-icon-setting"></i>
      <span slot="title">职位管理</span>
    </el-menu-item>
  </el-menu>
</template>

<script>
export default {
  props: {
    isCollapse: Boolean,
    navConfig:Object,
    activeNav:String,
    openeds:Array
  },
  data() {
    return {
    };
  },
};
</script>

<style lang='scss' scoped>
</style>
